// 短代码配置文件
// 可以根据需要添加更多短代码配置

export default [
  {
    name: 'alert',
    label: '提示框',
    description: '显示不同类型的提示信息',
    icon: '⚠️',
    hasContent: true,
    params: [
      {
        name: 'type',
        label: '类型',
        type: 'select',
        placeholder: '选择提示类型',
        default: 'info',
        options: [
          { label: '信息', value: 'info' },
          { label: '成功', value: 'success' },
          { label: '警告', value: 'warning' },
          { label: '错误', value: 'error' }
        ]
      },
      {
        name: 'title',
        label: '标题',
        type: 'text',
        placeholder: '输入提示标题',
        default: ''
      },
      {
        name: 'closable',
        label: '可关闭',
        type: 'boolean',
        default: true
      }
    ]
  },
  {
    name: 'button',
    label: '按钮',
    description: '创建自定义按钮',
    icon: '🔘',
    hasContent: true,
    params: [
      {
        name: 'type',
        label: '按钮类型',
        type: 'select',
        placeholder: '选择按钮类型',
        default: 'primary',
        options: [
          { label: '主要', value: 'primary' },
          { label: '成功', value: 'success' },
          { label: '警告', value: 'warning' },
          { label: '危险', value: 'danger' },
          { label: '信息', value: 'info' }
        ]
      },
      {
        name: 'size',
        label: '按钮大小',
        type: 'select',
        placeholder: '选择按钮大小',
        default: 'medium',
        options: [
          { label: '大', value: 'large' },
          { label: '中', value: 'medium' },
          { label: '小', value: 'small' },
          { label: '迷你', value: 'mini' }
        ]
      },
      {
        name: 'url',
        label: '链接',
        type: 'text',
        placeholder: '输入按钮链接',
        default: ''
      },
      {
        name: 'target',
        label: '打开方式',
        type: 'select',
        placeholder: '选择打开方式',
        default: '_self',
        options: [
          { label: '当前窗口', value: '_self' },
          { label: '新窗口', value: '_blank' }
        ]
      }
    ]
  },
  {
    name: 'card',
    label: '卡片',
    description: '创建内容卡片',
    icon: '🎴',
    hasContent: true,
    params: [
      {
        name: 'title',
        label: '卡片标题',
        type: 'text',
        placeholder: '输入卡片标题',
        default: ''
      },
      {
        name: 'shadow',
        label: '阴影效果',
        type: 'select',
        placeholder: '选择阴影效果',
        default: 'hover',
        options: [
          { label: '无阴影', value: 'never' },
          { label: '悬停时', value: 'hover' },
          { label: '总是显示', value: 'always' }
        ]
      },
      {
        name: 'header',
        label: '显示头部',
        type: 'boolean',
        default: true
      }
    ]
  },
  {
    name: 'tabs',
    label: '标签页',
    description: '创建标签页组件',
    icon: '📑',
    hasContent: true,
    params: [
      {
        name: 'type',
        label: '标签类型',
        type: 'select',
        placeholder: '选择标签类型',
        default: 'card',
        options: [
          { label: '卡片', value: 'card' },
          { label: '边框', value: 'border-card' }
        ]
      },
      {
        name: 'position',
        label: '标签位置',
        type: 'select',
        placeholder: '选择标签位置',
        default: 'top',
        options: [
          { label: '顶部', value: 'top' },
          { label: '右侧', value: 'right' },
          { label: '底部', value: 'bottom' },
          { label: '左侧', value: 'left' }
        ]
      }
    ]
  },
  {
    name: 'collapse',
    label: '折叠面板',
    description: '创建可折叠的内容面板',
    icon: '📋',
    hasContent: true,
    params: [
      {
        name: 'title',
        label: '面板标题',
        type: 'text',
        placeholder: '输入面板标题',
        default: ''
      },
      {
        name: 'accordion',
        label: '手风琴模式',
        type: 'boolean',
        default: false
      },
      {
        name: 'border',
        label: '显示边框',
        type: 'boolean',
        default: true
      }
    ]
  },
  {
    name: 'timeline',
    label: '时间线',
    description: '创建时间线组件',
    icon: '⏰',
    hasContent: true,
    params: [
      {
        name: 'reverse',
        label: '倒序显示',
        type: 'boolean',
        default: false
      }
    ]
  },
  {
    name: 'steps',
    label: '步骤条',
    description: '创建步骤导航',
    icon: '👣',
    hasContent: true,
    params: [
      {
        name: 'direction',
        label: '方向',
        type: 'select',
        placeholder: '选择方向',
        default: 'horizontal',
        options: [
          { label: '水平', value: 'horizontal' },
          { label: '垂直', value: 'vertical' }
        ]
      },
      {
        name: 'space',
        label: '步骤间距',
        type: 'text',
        placeholder: '输入间距（如：200px）',
        default: ''
      },
      {
        name: 'process_status',
        label: '当前步骤状态',
        type: 'select',
        placeholder: '选择状态',
        default: 'process',
        options: [
          { label: '进行中', value: 'process' },
          { label: '等待', value: 'wait' },
          { label: '完成', value: 'finish' },
          { label: '错误', value: 'error' },
          { label: '成功', value: 'success' }
        ]
      }
    ]
  },
  {
    name: 'progress',
    label: '进度条',
    description: '显示进度条',
    icon: '📊',
    hasContent: false,
    params: [
      {
        name: 'percentage',
        label: '进度百分比',
        type: 'text',
        placeholder: '输入百分比（0-100）',
        default: '50'
      },
      {
        name: 'type',
        label: '进度条类型',
        type: 'select',
        placeholder: '选择类型',
        default: 'line',
        options: [
          { label: '直线', value: 'line' },
          { label: '圆形', value: 'circle' },
          { label: '仪表盘', value: 'dashboard' }
        ]
      },
      {
        name: 'stroke_width',
        label: '进度条宽度',
        type: 'text',
        placeholder: '输入宽度（px）',
        default: '6'
      },
      {
        name: 'color',
        label: '进度条颜色',
        type: 'text',
        placeholder: '输入颜色值',
        default: '#409eff'
      },
      {
        name: 'show_text',
        label: '显示文字',
        type: 'boolean',
        default: true
      }
    ]
  },
  {
    name: 'badge',
    label: '徽章',
    description: '添加徽章标记',
    icon: '🏷️',
    hasContent: true,
    params: [
      {
        name: 'value',
        label: '徽章值',
        type: 'text',
        placeholder: '输入徽章内容',
        default: ''
      },
      {
        name: 'max',
        label: '最大值',
        type: 'text',
        placeholder: '输入最大显示值',
        default: '99'
      },
      {
        name: 'type',
        label: '徽章类型',
        type: 'select',
        placeholder: '选择类型',
        default: 'primary',
        options: [
          { label: '主要', value: 'primary' },
          { label: '成功', value: 'success' },
          { label: '警告', value: 'warning' },
          { label: '危险', value: 'danger' },
          { label: '信息', value: 'info' }
        ]
      },
      {
        name: 'is_dot',
        label: '小圆点',
        type: 'boolean',
        default: false
      }
    ]
  },
  {
    name: 'tag',
    label: '标签',
    description: '创建标签元素',
    icon: '🏷️',
    hasContent: true,
    params: [
      {
        name: 'type',
        label: '标签类型',
        type: 'select',
        placeholder: '选择类型',
        default: 'primary',
        options: [
          { label: '主要', value: 'primary' },
          { label: '成功', value: 'success' },
          { label: '警告', value: 'warning' },
          { label: '危险', value: 'danger' },
          { label: '信息', value: 'info' }
        ]
      },
      {
        name: 'size',
        label: '标签大小',
        type: 'select',
        placeholder: '选择大小',
        default: 'medium',
        options: [
          { label: '大', value: 'large' },
          { label: '中', value: 'medium' },
          { label: '小', value: 'small' },
          { label: '迷你', value: 'mini' }
        ]
      },
      {
        name: 'effect',
        label: '主题效果',
        type: 'select',
        placeholder: '选择效果',
        default: 'light',
        options: [
          { label: '浅色', value: 'light' },
          { label: '深色', value: 'dark' },
          { label: '朴素', value: 'plain' }
        ]
      },
      {
        name: 'closable',
        label: '可关闭',
        type: 'boolean',
        default: false
      }
    ]
  }
]
